package com.lce.beans;

import java.util.List;

public class TimeTable {
    private int id;
    private String name;
    private String onworktime;
    private String yonworktime;
    private String endonworktime;
    private String offworktime;
    private String yoffworktime;
    private String endoffworktime;
    private List<User> users;

    public TimeTable() {
    }

    public TimeTable(int id, String name, String onworktime, String yonworktime, String endonworktime, String offworktime, String yoffworktime, String endoffworktime) {
        this.id = id;
        this.name = name;
        this.onworktime = onworktime;
        this.yonworktime = yonworktime;
        this.endonworktime = endonworktime;
        this.offworktime = offworktime;
        this.yoffworktime = yoffworktime;
        this.endoffworktime = endoffworktime;
    }

    public TimeTable(String name, String onworktime, String yonworktime, String endonworktime, String offworktime, String yoffworktime, String endoffworktime) {
        this.name = name;
        this.onworktime = onworktime;
        this.yonworktime = yonworktime;
        this.endonworktime = endonworktime;
        this.offworktime = offworktime;
        this.yoffworktime = yoffworktime;
        this.endoffworktime = endoffworktime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOnworktime() {
        return onworktime;
    }

    public void setOnworktime(String onworktime) {
        this.onworktime = onworktime;
    }

    public String getYonworktime() {
        return yonworktime;
    }

    public void setYonworktime(String yonworktime) {
        this.yonworktime = yonworktime;
    }

    public String getEndonworktime() {
        return endonworktime;
    }

    public void setEndonworktime(String endonworktime) {
        this.endonworktime = endonworktime;
    }

    public String getOffworktime() {
        return offworktime;
    }

    public void setOffworktime(String offworktime) {
        this.offworktime = offworktime;
    }

    public String getYoffworktime() {
        return yoffworktime;
    }

    public void setYoffworktime(String yoffworktime) {
        this.yoffworktime = yoffworktime;
    }

    public String getEndoffworktime() {
        return endoffworktime;
    }

    public void setEndoffworktime(String endoffworktime) {
        this.endoffworktime = endoffworktime;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "TimeTable{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", onworktime='" + onworktime + '\'' +
                ", yonworktime='" + yonworktime + '\'' +
                ", endonworktime='" + endonworktime + '\'' +
                ", offworktime='" + offworktime + '\'' +
                ", yoffworktime='" + yoffworktime + '\'' +
                ", endoffworktime='" + endoffworktime + '\'' +
                '}';
    }
}
